package com.sc.nft.admin.controller;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.convert.Convert;
import com.sc.nft.annotation.UserLogin;
import com.sc.nft.dao.*;
import com.sc.nft.entity.ReportOverview;
import com.sc.nft.enums.StatisticalStatementEnum;
import com.sc.nft.service.ReportOverviewService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/admin/synchronousReportInterface")
public class SynchronousReportInterfaceController {

    @Resource
    private ReportBalanceDao reportBalanceDao;

    @Resource
    private ReportAmountDao reportAmountDao;

    @Resource
    private ReportTransferDao reportTransferDao;

    @Resource
    private ReportTransferDayDetailsDao reportTransferDayDetailsDao;

    @Resource
    private ReportUserDao reportUserDao;

    @Resource
    private ReportUserDayDetailsDao reportUserDayDetailsDao;

    @Resource
    private ReportOverviewService reportOverviewService;

    @RequestMapping("/synchronousReportBalance")
    @ApiOperation(value = "同步报表总览", notes = "同步报表总览")
    @UserLogin
    @ApiIgnore
    public void synchronousReportBalance() {
        List<ReportOverview> dataInfo = new ArrayList<>();
        reportBalanceDao.list().forEach(data -> {
            ReportOverview reportOverview = new ReportOverview();
            reportOverview.setType(StatisticalStatementEnum.TOTAL_BALANCE_OF_PLATFORM_ACCOUNT.getCode());
            reportOverview.setDataValue(Convert.toStr(data.getSumBalance().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview.setStatisticalTime(data.getCreateTime());
            reportOverview.setDescribe(StatisticalStatementEnum.TOTAL_BALANCE_OF_PLATFORM_ACCOUNT.getDescribe());
            reportOverview.setCreateTime(data.getCreateTime());
            reportOverview.setModifyTime(data.getModifyTime());
            reportOverview.setCreateId(data.getCreateId());
            reportOverview.setModifyId(data.getModifyId());
            reportOverview.setIsDelete(false);
            dataInfo.add(reportOverview);
            ReportOverview reportOverview1 = new ReportOverview();
            reportOverview1.setType(StatisticalStatementEnum.ACCUMULATED_TRANSFERRED.getCode());
            reportOverview1.setDataValue(Convert.toStr(data.getSumTransfer().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview1.setStatisticalTime(data.getCreateTime());
            reportOverview1.setDescribe(StatisticalStatementEnum.ACCUMULATED_TRANSFERRED.getDescribe());
            reportOverview1.setCreateTime(data.getCreateTime());
            reportOverview1.setModifyTime(data.getModifyTime());
            reportOverview1.setCreateId(data.getCreateId());
            reportOverview1.setModifyId(data.getModifyId());
            reportOverview1.setIsDelete(false);
            dataInfo.add(reportOverview1);
            ReportOverview reportOverview2 = new ReportOverview();
            reportOverview2.setType(StatisticalStatementEnum.ACCUMULATED_RECHARGE.getCode());
            reportOverview2.setDataValue(Convert.toStr(data.getSumRecharge().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview2.setStatisticalTime(data.getCreateTime());
            reportOverview2.setDescribe(StatisticalStatementEnum.ACCUMULATED_RECHARGE.getDescribe());
            reportOverview2.setCreateTime(data.getCreateTime());
            reportOverview2.setModifyTime(data.getModifyTime());
            reportOverview2.setCreateId(data.getCreateId());
            reportOverview2.setModifyId(data.getModifyId());
            reportOverview2.setIsDelete(false);
            dataInfo.add(reportOverview2);
            ReportOverview reportOverview3 = new ReportOverview();
            reportOverview3.setType(StatisticalStatementEnum.ACCUMULATED_FEE_INCOME.getCode());
            reportOverview3.setDataValue(Convert.toStr(data.getSumInCharge().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview3.setStatisticalTime(data.getCreateTime());
            reportOverview3.setDescribe(StatisticalStatementEnum.ACCUMULATED_FEE_INCOME.getDescribe());
            reportOverview3.setCreateTime(data.getCreateTime());
            reportOverview3.setModifyTime(data.getModifyTime());
            reportOverview3.setCreateId(data.getCreateId());
            reportOverview3.setModifyId(data.getModifyId());
            reportOverview3.setIsDelete(false);
            dataInfo.add(reportOverview3);
            ReportOverview reportOverview4 = new ReportOverview();
            reportOverview4.setType(StatisticalStatementEnum.ACCUMULATED_COMMISSION_EXPENSES.getCode());
            reportOverview4.setDataValue(Convert.toStr(data.getSumOutCharge().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview4.setStatisticalTime(data.getCreateTime());
            reportOverview4.setDescribe(StatisticalStatementEnum.ACCUMULATED_COMMISSION_EXPENSES.getDescribe());
            reportOverview4.setCreateTime(data.getCreateTime());
            reportOverview4.setModifyTime(data.getModifyTime());
            reportOverview4.setCreateId(data.getCreateId());
            reportOverview4.setModifyId(data.getModifyId());
            reportOverview4.setIsDelete(false);
            dataInfo.add(reportOverview4);
            ReportOverview reportOverview5 = new ReportOverview();
            reportOverview5.setType(StatisticalStatementEnum.ACCUMULATED_RED_ENVELOPES_ISSUED.getCode());
            reportOverview5.setDataValue(Convert.toStr(data.getSumOutPayBalance().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview5.setStatisticalTime(data.getCreateTime());
            reportOverview5.setDescribe(StatisticalStatementEnum.ACCUMULATED_RED_ENVELOPES_ISSUED.getDescribe());
            reportOverview5.setCreateTime(data.getCreateTime());
            reportOverview5.setModifyTime(data.getModifyTime());
            reportOverview5.setCreateId(data.getCreateId());
            reportOverview5.setModifyId(data.getModifyId());
            reportOverview5.setIsDelete(false);
            dataInfo.add(reportOverview5);
            ReportOverview reportOverview6 = new ReportOverview();
            reportOverview6.setType(StatisticalStatementEnum.ACCUMULATED_RED_ENVELOPES_USED.getCode());
            reportOverview6.setDataValue(Convert.toStr(data.getSumUsePayBalance().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview6.setStatisticalTime(data.getCreateTime());
            reportOverview6.setDescribe(StatisticalStatementEnum.ACCUMULATED_RED_ENVELOPES_USED.getDescribe());
            reportOverview6.setCreateTime(data.getCreateTime());
            reportOverview6.setModifyTime(data.getModifyTime());
            reportOverview6.setCreateId(data.getCreateId());
            reportOverview6.setModifyId(data.getModifyId());
            reportOverview6.setIsDelete(false);
            dataInfo.add(reportOverview6);
            ReportOverview reportOverview7 = new ReportOverview();
            reportOverview7.setType(StatisticalStatementEnum.PLATFORM_RED_ENVELOPE_RED_ENVELOPE_BALANCE.getCode());
            reportOverview7.setDataValue(Convert.toStr(data.getSumNowPayBalance().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview7.setStatisticalTime(data.getCreateTime());
            reportOverview7.setDescribe(StatisticalStatementEnum.PLATFORM_RED_ENVELOPE_RED_ENVELOPE_BALANCE.getDescribe());
            reportOverview7.setCreateTime(data.getCreateTime());
            reportOverview7.setModifyTime(data.getModifyTime());
            reportOverview7.setCreateId(data.getCreateId());
            reportOverview7.setModifyId(data.getModifyId());
            reportOverview7.setIsDelete(false);
            dataInfo.add(reportOverview7);

            ReportOverview reportOverview8 = new ReportOverview();
            reportOverview8.setType(StatisticalStatementEnum.CUMULATIVE_SALES_VOLUME_OF_CITY_MASTER.getCode());
            reportOverview8.setDataValue(Convert.toStr(data.getNowCityLordSellCount()));
            reportOverview8.setStatisticalTime(data.getCreateTime());
            reportOverview8.setDescribe(StatisticalStatementEnum.CUMULATIVE_SALES_VOLUME_OF_CITY_MASTER.getDescribe());
            reportOverview8.setCreateTime(data.getCreateTime());
            reportOverview8.setModifyTime(data.getModifyTime());
            reportOverview8.setCreateId(data.getCreateId());
            reportOverview8.setModifyId(data.getModifyId());
            reportOverview8.setIsDelete(false);
            dataInfo.add(reportOverview8);

            ReportOverview reportOverview9 = new ReportOverview();
            reportOverview9.setType(StatisticalStatementEnum.CUMULATIVE_RESIDENT_SALES_VOLUME.getCode());
            reportOverview9.setDataValue(Convert.toStr(data.getNowResidentSellCount()));
            reportOverview9.setStatisticalTime(data.getCreateTime());
            reportOverview9.setDescribe(StatisticalStatementEnum.CUMULATIVE_RESIDENT_SALES_VOLUME.getDescribe());
            reportOverview9.setCreateTime(data.getCreateTime());
            reportOverview9.setModifyTime(data.getModifyTime());
            reportOverview9.setCreateId(data.getCreateId());
            reportOverview9.setModifyId(data.getModifyId());
            reportOverview9.setIsDelete(false);
            dataInfo.add(reportOverview9);

            ReportOverview reportOverview10 = new ReportOverview();
            reportOverview10.setType(StatisticalStatementEnum.CUMULATIVE_NUMBER_OF_AIRDROPPED_RESIDENTS.getCode());
            reportOverview10.setDataValue(Convert.toStr(data.getSumAirdropGrantResidentCount()));
            reportOverview10.setStatisticalTime(data.getCreateTime());
            reportOverview10.setDescribe(StatisticalStatementEnum.CUMULATIVE_NUMBER_OF_AIRDROPPED_RESIDENTS.getDescribe());
            reportOverview10.setCreateTime(data.getCreateTime());
            reportOverview10.setModifyTime(data.getModifyTime());
            reportOverview10.setCreateId(data.getCreateId());
            reportOverview10.setModifyId(data.getModifyId());
            reportOverview10.setIsDelete(false);
            dataInfo.add(reportOverview10);

            ReportOverview reportOverview11 = new ReportOverview();
            reportOverview11.setType(StatisticalStatementEnum.CUMULATIVE_AIR_DROP_CITY_MASTER_SALES_VOLUME.getCode());
            reportOverview11.setDataValue(Convert.toStr(data.getSumAirdropGrantCityLordCount()));
            reportOverview11.setStatisticalTime(data.getCreateTime());
            reportOverview11.setDescribe(StatisticalStatementEnum.CUMULATIVE_AIR_DROP_CITY_MASTER_SALES_VOLUME.getDescribe());
            reportOverview11.setCreateTime(data.getCreateTime());
            reportOverview11.setModifyTime(data.getModifyTime());
            reportOverview11.setCreateId(data.getCreateId());
            reportOverview11.setModifyId(data.getModifyId());
            reportOverview11.setIsDelete(false);
            dataInfo.add(reportOverview11);

            ReportOverview reportOverview12 = new ReportOverview();
            reportOverview12.setType(StatisticalStatementEnum.CUMULATIVE_COMPOSITE_NUMBER_OF_RESIDENTS.getCode());
            reportOverview12.setDataValue(Convert.toStr(data.getSumSynthesisResidentCount()));
            reportOverview12.setStatisticalTime(data.getCreateTime());
            reportOverview12.setDescribe(StatisticalStatementEnum.CUMULATIVE_COMPOSITE_NUMBER_OF_RESIDENTS.getDescribe());
            reportOverview12.setCreateTime(data.getCreateTime());
            reportOverview12.setModifyTime(data.getModifyTime());
            reportOverview12.setCreateId(data.getCreateId());
            reportOverview12.setModifyId(data.getModifyId());
            reportOverview12.setIsDelete(false);
            dataInfo.add(reportOverview12);

            ReportOverview reportOverview13 = new ReportOverview();
            reportOverview13.setType(StatisticalStatementEnum.CUMULATIVE_COMPOSITE_NUMBER_OF_CITY_LORDS.getCode());
            reportOverview13.setDataValue(Convert.toStr(data.getSumSynthesisCityLordCount()));
            reportOverview13.setStatisticalTime(data.getCreateTime());
            reportOverview13.setDescribe(StatisticalStatementEnum.CUMULATIVE_COMPOSITE_NUMBER_OF_CITY_LORDS.getDescribe());
            reportOverview13.setCreateTime(data.getCreateTime());
            reportOverview13.setModifyTime(data.getModifyTime());
            reportOverview13.setCreateId(data.getCreateId());
            reportOverview13.setModifyId(data.getModifyId());
            reportOverview13.setIsDelete(false);
            dataInfo.add(reportOverview13);
        });
        reportAmountDao.list().forEach(data -> {
            ReportOverview reportOverview = new ReportOverview();
            reportOverview.setType(StatisticalStatementEnum.TOTAL_AMOUNT_RECHARGED_BY_USERS_IN_ONE_DAY.getCode());
            reportOverview.setDataValue(Convert.toStr(data.getToDayRechargeAmount().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview.setStatisticalTime(data.getCreateTime());
            reportOverview.setDescribe(StatisticalStatementEnum.TOTAL_AMOUNT_RECHARGED_BY_USERS_IN_ONE_DAY.getDescribe());
            reportOverview.setCreateTime(data.getCreateTime());
            reportOverview.setModifyTime(data.getModifyTime());
            reportOverview.setCreateId(data.getCreateId());
            reportOverview.setModifyId(data.getModifyId());
            reportOverview.setIsDelete(false);
            dataInfo.add(reportOverview);
            ReportOverview reportOverview1 = new ReportOverview();
            reportOverview1.setType(StatisticalStatementEnum.TOTAL_AMOUNT_OF_TRANSFERS_APPROVED_IN_A_SINGLE_DAY.getCode());
            reportOverview1.setDataValue(Convert.toStr(data.getToDayTransferAmount().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview1.setStatisticalTime(data.getCreateTime());
            reportOverview1.setDescribe(StatisticalStatementEnum.TOTAL_AMOUNT_OF_TRANSFERS_APPROVED_IN_A_SINGLE_DAY.getDescribe());
            reportOverview1.setCreateTime(data.getCreateTime());
            reportOverview1.setModifyTime(data.getModifyTime());
            reportOverview1.setCreateId(data.getCreateId());
            reportOverview1.setModifyId(data.getModifyId());
            reportOverview1.setIsDelete(false);
            dataInfo.add(reportOverview1);
            ReportOverview reportOverview2 = new ReportOverview();
            reportOverview2.setType(StatisticalStatementEnum.TOTAL_AMOUNT_SUCCESSFULLY_WITHDRAWN_IN_A_SINGLE_DAY.getCode());
            reportOverview2.setDataValue(Convert.toStr(data.getToDayWithdrawAmount().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview2.setStatisticalTime(data.getCreateTime());
            reportOverview2.setDescribe(StatisticalStatementEnum.TOTAL_AMOUNT_SUCCESSFULLY_WITHDRAWN_IN_A_SINGLE_DAY.getDescribe());
            reportOverview2.setCreateTime(data.getCreateTime());
            reportOverview2.setModifyTime(data.getModifyTime());
            reportOverview2.setCreateId(data.getCreateId());
            reportOverview2.setModifyId(data.getModifyId());
            reportOverview2.setIsDelete(false);
            dataInfo.add(reportOverview2);
            ReportOverview reportOverview3 = new ReportOverview();
            reportOverview3.setType(StatisticalStatementEnum.SINGLE_DAY_PRIMARY_MARKET_TURNOVER.getCode());
            reportOverview3.setDataValue(Convert.toStr(data.getToDaySellAmount().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview3.setStatisticalTime(data.getCreateTime());
            reportOverview3.setDescribe(StatisticalStatementEnum.SINGLE_DAY_PRIMARY_MARKET_TURNOVER.getDescribe());
            reportOverview3.setCreateTime(data.getCreateTime());
            reportOverview3.setModifyTime(data.getModifyTime());
            reportOverview3.setCreateId(data.getCreateId());
            reportOverview3.setModifyId(data.getModifyId());
            reportOverview3.setIsDelete(false);
            dataInfo.add(reportOverview3);
            ReportOverview reportOverview4 = new ReportOverview();
            reportOverview4.setType(StatisticalStatementEnum.SINGLE_DAY_SECONDARY_MARKET_TURNOVER.getCode());
            reportOverview4.setDataValue(Convert.toStr(data.getToDaySecondSellAmount().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview4.setStatisticalTime(data.getCreateTime());
            reportOverview4.setDescribe(StatisticalStatementEnum.SINGLE_DAY_SECONDARY_MARKET_TURNOVER.getDescribe());
            reportOverview4.setCreateTime(data.getCreateTime());
            reportOverview4.setModifyTime(data.getModifyTime());
            reportOverview4.setCreateId(data.getCreateId());
            reportOverview4.setModifyId(data.getModifyId());
            reportOverview4.setIsDelete(false);
            dataInfo.add(reportOverview4);
            ReportOverview reportOverview5 = new ReportOverview();
            reportOverview5.setType(StatisticalStatementEnum.TOTAL_THIRD_PARTY_FEES_GENERATED_IN_A_SINGLE_DAY.getCode());
            reportOverview5.setDataValue(Convert.toStr(data.getToDayCharge().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview5.setStatisticalTime(data.getCreateTime());
            reportOverview5.setDescribe(StatisticalStatementEnum.TOTAL_THIRD_PARTY_FEES_GENERATED_IN_A_SINGLE_DAY.getDescribe());
            reportOverview5.setCreateTime(data.getCreateTime());
            reportOverview5.setModifyTime(data.getModifyTime());
            reportOverview5.setCreateId(data.getCreateId());
            reportOverview5.setModifyId(data.getModifyId());
            reportOverview5.setIsDelete(false);
            dataInfo.add(reportOverview5);
            ReportOverview reportOverview6 = new ReportOverview();
            reportOverview6.setType(StatisticalStatementEnum.THE_AMOUNT_OF_CASH_AWARDED_IN_A_SINGLE_DAY.getCode());
            reportOverview6.setDataValue(Convert.toStr(data.getToDayIncomeNum().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview6.setStatisticalTime(data.getCreateTime());
            reportOverview6.setDescribe(StatisticalStatementEnum.THE_AMOUNT_OF_CASH_AWARDED_IN_A_SINGLE_DAY.getDescribe());
            reportOverview6.setCreateTime(data.getCreateTime());
            reportOverview6.setModifyTime(data.getModifyTime());
            reportOverview6.setCreateId(data.getCreateId());
            reportOverview6.setModifyId(data.getModifyId());
            reportOverview6.setIsDelete(false);
            dataInfo.add(reportOverview6);
            ReportOverview reportOverview7 = new ReportOverview();
            reportOverview7.setType(StatisticalStatementEnum.THE_AMOUNT_OF_RED_PACKETS_AWARDED_IN_A_SINGLE_DAY.getCode());
            reportOverview7.setDataValue(Convert.toStr(data.getToDayIncomePayBalanceNum().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview7.setStatisticalTime(data.getCreateTime());
            reportOverview7.setDescribe(StatisticalStatementEnum.THE_AMOUNT_OF_RED_PACKETS_AWARDED_IN_A_SINGLE_DAY.getDescribe());
            reportOverview7.setCreateTime(data.getCreateTime());
            reportOverview7.setModifyTime(data.getModifyTime());
            reportOverview7.setCreateId(data.getCreateId());
            reportOverview7.setModifyId(data.getModifyId());
            reportOverview7.setIsDelete(false);
            dataInfo.add(reportOverview7);
        });
        reportTransferDao.list().forEach(data -> {
            ReportOverview reportOverview = new ReportOverview();
            reportOverview.setType(StatisticalStatementEnum.TOTAL_PRIMARY_MARKET_SALES.getCode());
            reportOverview.setDataValue(Convert.toStr(data.getSumStarterSellAmount().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview.setStatisticalTime(data.getCreateTime());
            reportOverview.setDescribe(StatisticalStatementEnum.TOTAL_PRIMARY_MARKET_SALES.getDescribe());
            reportOverview.setCreateTime(data.getCreateTime());
            reportOverview.setModifyTime(data.getModifyTime());
            reportOverview.setCreateId(data.getCreateId());
            reportOverview.setModifyId(data.getModifyId());
            reportOverview.setIsDelete(false);
            dataInfo.add(reportOverview);
            ReportOverview reportOverview1 = new ReportOverview();
            reportOverview1.setType(StatisticalStatementEnum.TOTAL_BRAND_INCUBATION_SALES_USER.getCode());
            reportOverview1.setDataValue(Convert.toStr(data.getSumBrandIncubationUserSellAmount().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview1.setStatisticalTime(data.getCreateTime());
            reportOverview1.setDescribe(StatisticalStatementEnum.TOTAL_BRAND_INCUBATION_SALES_USER.getDescribe());
            reportOverview1.setCreateTime(data.getCreateTime());
            reportOverview1.setModifyTime(data.getModifyTime());
            reportOverview1.setCreateId(data.getCreateId());
            reportOverview1.setModifyId(data.getModifyId());
            reportOverview1.setIsDelete(false);
            dataInfo.add(reportOverview1);
            ReportOverview reportOverview2 = new ReportOverview();
            reportOverview2.setType(StatisticalStatementEnum.TOTAL_BRAND_INCUBATION_SALES_MARKET_VALUE.getCode());
            reportOverview2.setDataValue(Convert.toStr(data.getSumBrandIncubationOtherSellAmount().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview2.setStatisticalTime(data.getCreateTime());
            reportOverview2.setDescribe(StatisticalStatementEnum.TOTAL_BRAND_INCUBATION_SALES_MARKET_VALUE.getDescribe());
            reportOverview2.setCreateTime(data.getCreateTime());
            reportOverview2.setModifyTime(data.getModifyTime());
            reportOverview2.setCreateId(data.getCreateId());
            reportOverview2.setModifyId(data.getModifyId());
            reportOverview2.setIsDelete(false);
            dataInfo.add(reportOverview2);
            ReportOverview reportOverview3 = new ReportOverview();
            reportOverview3.setType(StatisticalStatementEnum.FREE_MARKET_SALES_USERS.getCode());
            reportOverview3.setDataValue(Convert.toStr(data.getSumFreeMarketUserSellAmount().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview3.setStatisticalTime(data.getCreateTime());
            reportOverview3.setDescribe(StatisticalStatementEnum.FREE_MARKET_SALES_USERS.getDescribe());
            reportOverview3.setCreateTime(data.getCreateTime());
            reportOverview3.setModifyTime(data.getModifyTime());
            reportOverview3.setCreateId(data.getCreateId());
            reportOverview3.setModifyId(data.getModifyId());
            reportOverview3.setIsDelete(false);
            dataInfo.add(reportOverview3);

            ReportOverview reportOverview4 = new ReportOverview();
            reportOverview4.setType(StatisticalStatementEnum.FREE_MARKET_SALES_MARKET_VALUE.getCode());
            reportOverview4.setDataValue(Convert.toStr(data.getSumFreeMarketOtherSellAmount().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview4.setStatisticalTime(data.getCreateTime());
            reportOverview4.setDescribe(StatisticalStatementEnum.FREE_MARKET_SALES_MARKET_VALUE.getDescribe());
            reportOverview4.setCreateTime(data.getCreateTime());
            reportOverview4.setModifyTime(data.getModifyTime());
            reportOverview4.setCreateId(data.getCreateId());
            reportOverview4.setModifyId(data.getModifyId());
            reportOverview4.setIsDelete(false);
            dataInfo.add(reportOverview4);
            ReportOverview reportOverview5 = new ReportOverview();
            reportOverview5.setType(StatisticalStatementEnum.MARKET_SALES.getCode());
            reportOverview5.setDataValue(Convert.toStr(data.getSumSellAmount().setScale(2, BigDecimal.ROUND_DOWN)));
            reportOverview5.setStatisticalTime(data.getCreateTime());
            reportOverview5.setDescribe(StatisticalStatementEnum.MARKET_SALES.getDescribe());
            reportOverview5.setCreateTime(data.getCreateTime());
            reportOverview5.setModifyTime(data.getModifyTime());
            reportOverview5.setCreateId(data.getCreateId());
            reportOverview5.setModifyId(data.getModifyId());
            reportOverview5.setIsDelete(false);
            dataInfo.add(reportOverview5);
        });
        reportTransferDayDetailsDao.list().forEach(data -> {
            ReportOverview reportOverview = new ReportOverview();
            if (data.getType().equals(1)) {
                reportOverview.setType(StatisticalStatementEnum.FIRST_ORDER_NUMBER_OF_TRANSACTION_ORDERS_IN_THE_PRIMARY_MARKET.getCode());
                reportOverview.setDataValue(Convert.toStr(data.getToDaySellCount()));
                reportOverview.setStatisticalTime(data.getCreateTime());
                reportOverview.setDescribe(StatisticalStatementEnum.FIRST_ORDER_NUMBER_OF_TRANSACTION_ORDERS_IN_THE_PRIMARY_MARKET.getDescribe());
            } else if (data.getType().equals(2)) {
                reportOverview.setType(StatisticalStatementEnum.SECONDARY_MARKET_NUMBER_OF_TRANSACTION.getCode());
                reportOverview.setDataValue(Convert.toStr(data.getToDaySellCount()));
                reportOverview.setStatisticalTime(data.getCreateTime());
                reportOverview.setDescribe(StatisticalStatementEnum.SECONDARY_MARKET_NUMBER_OF_TRANSACTION.getDescribe());
            } else {
                reportOverview.setType(StatisticalStatementEnum.FREE_MARKET_NUMBER_OF_TRANSACTION_ORDERS_IN_THE_PRIMARY_MARKET.getCode());
                reportOverview.setDataValue(Convert.toStr(data.getToDaySellCount()));
                reportOverview.setStatisticalTime(data.getCreateTime());
                reportOverview.setDescribe(StatisticalStatementEnum.FREE_MARKET_NUMBER_OF_TRANSACTION_ORDERS_IN_THE_PRIMARY_MARKET.getDescribe());
            }
            reportOverview.setCreateTime(data.getCreateTime());
            reportOverview.setModifyTime(data.getModifyTime());
            reportOverview.setCreateId(data.getCreateId());
            reportOverview.setModifyId(data.getModifyId());
            reportOverview.setIsDelete(false);
            dataInfo.add(reportOverview);
            ReportOverview reportOverview1 = new ReportOverview();
            if (data.getType().equals(1)) {
                reportOverview1.setType(StatisticalStatementEnum.FIRST_ORDER_TRANSACTION_AMOUNT_IN_THE_PRIMARY_MARKET.getCode());
                reportOverview1.setDataValue(Convert.toStr(data.getToDaySellAmount().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview1.setStatisticalTime(data.getCreateTime());
                reportOverview1.setDescribe(StatisticalStatementEnum.FIRST_ORDER_TRANSACTION_AMOUNT_IN_THE_PRIMARY_MARKET.getDescribe());
            } else if (data.getType().equals(2)) {
                reportOverview1.setType(StatisticalStatementEnum.SECONDARY_MARKET_TRANSACTION_AMOUNT.getCode());
                reportOverview1.setDataValue(Convert.toStr(data.getToDaySellAmount().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview1.setStatisticalTime(data.getCreateTime());
                reportOverview1.setDescribe(StatisticalStatementEnum.SECONDARY_MARKET_TRANSACTION_AMOUNT.getDescribe());
            } else {
                reportOverview1.setType(StatisticalStatementEnum.FREE_MARKET_TRANSACTION_AMOUNT_IN_THE_PRIMARY_MARKET.getCode());
                reportOverview1.setDataValue(Convert.toStr(data.getToDaySellAmount().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview1.setStatisticalTime(data.getCreateTime());
                reportOverview1.setDescribe(StatisticalStatementEnum.FREE_MARKET_TRANSACTION_AMOUNT_IN_THE_PRIMARY_MARKET.getDescribe());
            }
            reportOverview1.setCreateTime(data.getCreateTime());
            reportOverview1.setModifyTime(data.getModifyTime());
            reportOverview1.setCreateId(data.getCreateId());
            reportOverview1.setModifyId(data.getModifyId());
            reportOverview1.setIsDelete(false);
            dataInfo.add(reportOverview1);

            ReportOverview reportOverview2 = new ReportOverview();
            if (data.getType().equals(1)) {
                reportOverview2.setType(StatisticalStatementEnum.FIRST_ORDER_NUMBER_OF_TRANSACTION_BUYERS.getCode());
                reportOverview2.setDataValue(Convert.toStr(data.getToDaySellBuyUserCount()));
                reportOverview2.setStatisticalTime(data.getCreateTime());
                reportOverview2.setDescribe(StatisticalStatementEnum.FIRST_ORDER_NUMBER_OF_TRANSACTION_BUYERS.getDescribe());
            } else if (data.getType().equals(2)) {
                reportOverview2.setType(StatisticalStatementEnum.SECONDARY_MARKET_NUMBER_OF_TRANSACTION_BUYERS.getCode());
                reportOverview2.setDataValue(Convert.toStr(data.getToDaySellBuyUserCount()));
                reportOverview2.setStatisticalTime(data.getCreateTime());
                reportOverview2.setDescribe(StatisticalStatementEnum.SECONDARY_MARKET_NUMBER_OF_TRANSACTION_BUYERS.getDescribe());
            } else {
                reportOverview2.setType(StatisticalStatementEnum.FREE_MARKET_NUMBER_OF_TRANSACTION_BUYERS.getCode());
                reportOverview2.setDataValue(Convert.toStr(data.getToDaySellBuyUserCount()));
                reportOverview2.setStatisticalTime(data.getCreateTime());
                reportOverview2.setDescribe(StatisticalStatementEnum.FREE_MARKET_NUMBER_OF_TRANSACTION_BUYERS.getDescribe());
            }
            reportOverview2.setCreateTime(data.getCreateTime());
            reportOverview2.setModifyTime(data.getModifyTime());
            reportOverview2.setCreateId(data.getCreateId());
            reportOverview2.setModifyId(data.getModifyId());
            reportOverview2.setIsDelete(false);
            dataInfo.add(reportOverview2);

            ReportOverview reportOverview3 = new ReportOverview();
            if (data.getType().equals(1)) {
                reportOverview3.setType(StatisticalStatementEnum.FIRST_ORDER_NUMBER_OF_TRANSACTION_SELLER_USERS.getCode());
                reportOverview3.setDataValue(Convert.toStr(data.getToDaySellUserCount()));
                reportOverview3.setStatisticalTime(data.getCreateTime());
                reportOverview3.setDescribe(StatisticalStatementEnum.FIRST_ORDER_NUMBER_OF_TRANSACTION_SELLER_USERS.getDescribe());
            } else if (data.getType().equals(2)) {
                reportOverview3.setType(StatisticalStatementEnum.SECONDARY_MARKET_NUMBER_OF_TRANSACTION_SELLER_USERS.getCode());
                reportOverview3.setDataValue(Convert.toStr(data.getToDaySellUserCount()));
                reportOverview3.setStatisticalTime(data.getCreateTime());
                reportOverview3.setDescribe(StatisticalStatementEnum.SECONDARY_MARKET_NUMBER_OF_TRANSACTION_SELLER_USERS.getDescribe());
            } else {
                reportOverview3.setType(StatisticalStatementEnum.FREE_MARKET_NUMBER_OF_TRANSACTION_SELLER_USERS.getCode());
                reportOverview3.setDataValue(Convert.toStr(data.getToDaySellUserCount()));
                reportOverview3.setStatisticalTime(data.getCreateTime());
                reportOverview3.setDescribe(StatisticalStatementEnum.FREE_MARKET_NUMBER_OF_TRANSACTION_SELLER_USERS.getDescribe());
            }
            reportOverview3.setCreateTime(data.getCreateTime());
            reportOverview3.setModifyTime(data.getModifyTime());
            reportOverview3.setCreateId(data.getCreateId());
            reportOverview3.setModifyId(data.getModifyId());
            reportOverview3.setIsDelete(false);
            dataInfo.add(reportOverview3);
            ReportOverview reportOverview4 = new ReportOverview();
            if (data.getType().equals(1)) {
                reportOverview4.setType(StatisticalStatementEnum.FIRST_ORDER_THE_AMOUNT_OF_MONEY_DEDUCTED_BY_RED_ENVELOPES.getCode());
                reportOverview4.setDataValue(Convert.toStr(data.getToDayPayBalanceAmount().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview4.setStatisticalTime(data.getCreateTime());
                reportOverview4.setDescribe(StatisticalStatementEnum.FIRST_ORDER_THE_AMOUNT_OF_MONEY_DEDUCTED_BY_RED_ENVELOPES.getDescribe());
            } else if (data.getType().equals(2)) {
                reportOverview4.setType(StatisticalStatementEnum.SECONDARY_MARKET_THE_AMOUNT_OF_MONEY_DEDUCTED_BY_RED_ENVELOPES.getCode());
                reportOverview4.setDataValue(Convert.toStr(data.getToDayPayBalanceAmount().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview4.setStatisticalTime(data.getCreateTime());
                reportOverview4.setDescribe(StatisticalStatementEnum.SECONDARY_MARKET_THE_AMOUNT_OF_MONEY_DEDUCTED_BY_RED_ENVELOPES.getDescribe());
            } else {
                reportOverview4.setType(StatisticalStatementEnum.FREE_MARKET_THE_AMOUNT_OF_MONEY_DEDUCTED_BY_RED_ENVELOPES.getCode());
                reportOverview4.setDataValue(Convert.toStr(data.getToDayPayBalanceAmount().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview4.setStatisticalTime(data.getCreateTime());
                reportOverview4.setDescribe(StatisticalStatementEnum.FREE_MARKET_THE_AMOUNT_OF_MONEY_DEDUCTED_BY_RED_ENVELOPES.getDescribe());
            }
            reportOverview4.setCreateTime(data.getCreateTime());
            reportOverview4.setModifyTime(data.getModifyTime());
            reportOverview4.setCreateId(data.getCreateId());
            reportOverview4.setModifyId(data.getModifyId());
            reportOverview4.setIsDelete(false);
            dataInfo.add(reportOverview4);

            ReportOverview reportOverview5 = new ReportOverview();
            if (data.getType().equals(1)) {
                reportOverview5.setType(StatisticalStatementEnum.FIRST_ORDER_DIRECT_REVENUE_ON_THE_DAY.getCode());
                reportOverview5.setDataValue(Convert.toStr(data.getToDaySumPushStraightIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview5.setStatisticalTime(data.getCreateTime());
                reportOverview5.setDescribe(StatisticalStatementEnum.FIRST_ORDER_DIRECT_REVENUE_ON_THE_DAY.getDescribe());
            } else if (data.getType().equals(2)) {
                reportOverview5.setType(StatisticalStatementEnum.SECONDARY_MARKET_DIRECT_REVENUE_ON_THE_DAY.getCode());
                reportOverview5.setDataValue(Convert.toStr(data.getToDaySumPushStraightIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview5.setStatisticalTime(data.getCreateTime());
                reportOverview5.setDescribe(StatisticalStatementEnum.SECONDARY_MARKET_DIRECT_REVENUE_ON_THE_DAY.getDescribe());
            } else {
                reportOverview5.setType(StatisticalStatementEnum.FREE_MARKET_DIRECT_REVENUE_ON_THE_DAY.getCode());
                reportOverview5.setDataValue(Convert.toStr(data.getToDaySumPushStraightIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview5.setStatisticalTime(data.getCreateTime());
                reportOverview5.setDescribe(StatisticalStatementEnum.FREE_MARKET_DIRECT_REVENUE_ON_THE_DAY.getDescribe());
            }
            reportOverview5.setCreateTime(data.getCreateTime());
            reportOverview5.setModifyTime(data.getModifyTime());
            reportOverview5.setCreateId(data.getCreateId());
            reportOverview5.setModifyId(data.getModifyId());
            reportOverview5.setIsDelete(false);
            dataInfo.add(reportOverview5);

            ReportOverview reportOverview6 = new ReportOverview();
            if (data.getType().equals(1)) {
                reportOverview6.setType(StatisticalStatementEnum.FIRST_ORDER_DAY_TO_DAY_EARNINGS.getCode());
                reportOverview6.setDataValue(Convert.toStr(data.getToDaySumPushBetweenIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview6.setStatisticalTime(data.getCreateTime());
                reportOverview6.setDescribe(StatisticalStatementEnum.FIRST_ORDER_DAY_TO_DAY_EARNINGS.getDescribe());
            } else if (data.getType().equals(2)) {
                reportOverview6.setType(StatisticalStatementEnum.SECONDARY_MARKET_DAY_TO_DAY_EARNINGS.getCode());
                reportOverview6.setDataValue(Convert.toStr(data.getToDaySumPushBetweenIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview6.setStatisticalTime(data.getCreateTime());
                reportOverview6.setDescribe(StatisticalStatementEnum.SECONDARY_MARKET_DAY_TO_DAY_EARNINGS.getDescribe());
            } else {
                reportOverview6.setType(StatisticalStatementEnum.FREE_MARKET_DAY_TO_DAY_EARNINGS.getCode());
                reportOverview6.setDataValue(Convert.toStr(data.getToDaySumPushBetweenIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview6.setStatisticalTime(data.getCreateTime());
                reportOverview6.setDescribe(StatisticalStatementEnum.FREE_MARKET_DAY_TO_DAY_EARNINGS.getDescribe());
            }
            reportOverview6.setCreateTime(data.getCreateTime());
            reportOverview6.setModifyTime(data.getModifyTime());
            reportOverview6.setCreateId(data.getCreateId());
            reportOverview6.setModifyId(data.getModifyId());
            reportOverview6.setIsDelete(false);
            dataInfo.add(reportOverview6);

            ReportOverview reportOverview7 = new ReportOverview();
            if (data.getType().equals(1)) {
                reportOverview7.setType(StatisticalStatementEnum.FIRST_ORDER_BREEDING_AWARD_OF_THE_DAY.getCode());
                reportOverview7.setDataValue(Convert.toStr(data.getToDaySumNurturingAwardPurchaseIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview7.setStatisticalTime(data.getCreateTime());
                reportOverview7.setDescribe(StatisticalStatementEnum.FIRST_ORDER_BREEDING_AWARD_OF_THE_DAY.getDescribe());
            } else if (data.getType().equals(2)) {
                reportOverview7.setType(StatisticalStatementEnum.SECONDARY_MARKET_BREEDING_AWARD_OF_THE_DAY.getCode());
                reportOverview7.setDataValue(Convert.toStr(data.getToDaySumNurturingAwardPurchaseIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview7.setStatisticalTime(data.getCreateTime());
                reportOverview7.setDescribe(StatisticalStatementEnum.SECONDARY_MARKET_BREEDING_AWARD_OF_THE_DAY.getDescribe());
            } else {
                reportOverview7.setType(StatisticalStatementEnum.FREE_MARKET_BREEDING_AWARD_OF_THE_DAY.getCode());
                reportOverview7.setDataValue(Convert.toStr(data.getToDaySumNurturingAwardPurchaseIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview7.setStatisticalTime(data.getCreateTime());
                reportOverview7.setDescribe(StatisticalStatementEnum.FREE_MARKET_BREEDING_AWARD_OF_THE_DAY.getDescribe());
            }
            reportOverview7.setCreateTime(data.getCreateTime());
            reportOverview7.setModifyTime(data.getModifyTime());
            reportOverview7.setCreateId(data.getCreateId());
            reportOverview7.setModifyId(data.getModifyId());
            reportOverview7.setIsDelete(false);
            dataInfo.add(reportOverview7);

            ReportOverview reportOverview8 = new ReportOverview();
            if (data.getType().equals(1)) {
                reportOverview8.setType(StatisticalStatementEnum.FIRST_ORDER_TEAM_CONTRIBUTION_AWARD_OF_THE_DAY.getCode());
                reportOverview8.setDataValue(Convert.toStr(data.getToDaySumTeamContributionAwardPurchaseIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview8.setStatisticalTime(data.getCreateTime());
                reportOverview8.setDescribe(StatisticalStatementEnum.FIRST_ORDER_TEAM_CONTRIBUTION_AWARD_OF_THE_DAY.getDescribe());
            } else if (data.getType().equals(2)) {
                reportOverview8.setType(StatisticalStatementEnum.SECONDARY_MARKET_TEAM_CONTRIBUTION_AWARD_OF_THE_DAY.getCode());
                reportOverview8.setDataValue(Convert.toStr(data.getToDaySumTeamContributionAwardPurchaseIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview8.setStatisticalTime(data.getCreateTime());
                reportOverview8.setDescribe(StatisticalStatementEnum.SECONDARY_MARKET_TEAM_CONTRIBUTION_AWARD_OF_THE_DAY.getDescribe());
            } else {
                reportOverview8.setType(StatisticalStatementEnum.FREE_MARKET_TEAM_CONTRIBUTION_AWARD_OF_THE_DAY.getCode());
                reportOverview8.setDataValue(Convert.toStr(data.getToDaySumTeamContributionAwardPurchaseIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview8.setStatisticalTime(data.getCreateTime());
                reportOverview8.setDescribe(StatisticalStatementEnum.FREE_MARKET_TEAM_CONTRIBUTION_AWARD_OF_THE_DAY.getDescribe());
            }
            reportOverview8.setCreateTime(data.getCreateTime());
            reportOverview8.setModifyTime(data.getModifyTime());
            reportOverview8.setCreateId(data.getCreateId());
            reportOverview8.setModifyId(data.getModifyId());
            reportOverview8.setIsDelete(false);
            dataInfo.add(reportOverview8);
            ReportOverview reportOverview9 = new ReportOverview();
            if (data.getType().equals(1)) {
                reportOverview9.setType(StatisticalStatementEnum.FIRST_ORDER_CITY_CONSIGNMENT_DIVIDEND_ON_THE_SAME_DAY.getCode());
                reportOverview9.setDataValue(Convert.toStr(data.getToDaySumCityServerCentreIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview9.setStatisticalTime(data.getCreateTime());
                reportOverview9.setDescribe(StatisticalStatementEnum.FIRST_ORDER_CITY_CONSIGNMENT_DIVIDEND_ON_THE_SAME_DAY.getDescribe());
            } else if (data.getType().equals(2)) {
                reportOverview9.setType(StatisticalStatementEnum.SECONDARY_MARKET_CITY_CONSIGNMENT_DIVIDEND_ON_THE_SAME_DAY.getCode());
                reportOverview9.setDataValue(Convert.toStr(data.getToDaySumCityServerCentreIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview9.setStatisticalTime(data.getCreateTime());
                reportOverview9.setDescribe(StatisticalStatementEnum.SECONDARY_MARKET_CITY_CONSIGNMENT_DIVIDEND_ON_THE_SAME_DAY.getDescribe());
            } else {
                reportOverview9.setType(StatisticalStatementEnum.FREE_MARKET_CITY_CONSIGNMENT_DIVIDEND_ON_THE_SAME_DAY.getCode());
                reportOverview9.setDataValue(Convert.toStr(data.getToDaySumCityServerCentreIncome().setScale(2, BigDecimal.ROUND_DOWN)));
                reportOverview9.setStatisticalTime(data.getCreateTime());
                reportOverview9.setDescribe(StatisticalStatementEnum.FREE_MARKET_CITY_CONSIGNMENT_DIVIDEND_ON_THE_SAME_DAY.getDescribe());
            }
            reportOverview8.setCreateTime(data.getCreateTime());
            reportOverview8.setModifyTime(data.getModifyTime());
            reportOverview8.setCreateId(data.getCreateId());
            reportOverview8.setModifyId(data.getModifyId());
            reportOverview8.setIsDelete(false);
            dataInfo.add(reportOverview9);
        });
        reportUserDao.list().forEach(data -> {
            ReportOverview reportOverview = new ReportOverview();
            reportOverview.setType(StatisticalStatementEnum.NUMBER_OF_LORDS.getCode());
            reportOverview.setDataValue(Convert.toStr(data.getSumPartnerCount()));
            reportOverview.setStatisticalTime(data.getCreateTime());
            reportOverview.setDescribe(StatisticalStatementEnum.NUMBER_OF_LORDS.getDescribe());
            reportOverview.setCreateTime(data.getCreateTime());
            reportOverview.setModifyTime(data.getModifyTime());
            reportOverview.setCreateId(data.getCreateId());
            reportOverview.setModifyId(data.getModifyId());
            reportOverview.setIsDelete(false);
            dataInfo.add(reportOverview);
            ReportOverview reportOverview1 = new ReportOverview();
            reportOverview1.setType(StatisticalStatementEnum.NUMBER_OF_TOTAL_CITADELS.getCode());
            reportOverview1.setDataValue(Convert.toStr(data.getSumCityLordCount()));
            reportOverview1.setStatisticalTime(data.getCreateTime());
            reportOverview1.setDescribe(StatisticalStatementEnum.NUMBER_OF_TOTAL_CITADELS.getDescribe());
            reportOverview1.setCreateTime(data.getCreateTime());
            reportOverview1.setModifyTime(data.getModifyTime());
            reportOverview1.setCreateId(data.getCreateId());
            reportOverview1.setModifyId(data.getModifyId());
            reportOverview1.setIsDelete(false);
            dataInfo.add(reportOverview1);
            ReportOverview reportOverview2 = new ReportOverview();
            reportOverview2.setType(StatisticalStatementEnum.TOTAL_NUMBER_OF_INHABITANTS.getCode());
            reportOverview2.setDataValue(Convert.toStr(data.getSumResidentCount()));
            reportOverview2.setStatisticalTime(data.getCreateTime());
            reportOverview2.setDescribe(StatisticalStatementEnum.TOTAL_NUMBER_OF_INHABITANTS.getDescribe());
            reportOverview2.setCreateTime(data.getCreateTime());
            reportOverview2.setModifyTime(data.getModifyTime());
            reportOverview2.setCreateId(data.getCreateId());
            reportOverview2.setModifyId(data.getModifyId());
            reportOverview2.setIsDelete(false);
            dataInfo.add(reportOverview2);
            ReportOverview reportOverview3 = new ReportOverview();
            reportOverview3.setType(StatisticalStatementEnum.TOTAL_NUMBER_OF_VISITORS.getCode());
            reportOverview3.setDataValue(Convert.toStr(data.getSumRtouristsCount()));
            reportOverview3.setStatisticalTime(data.getCreateTime());
            reportOverview3.setDescribe(StatisticalStatementEnum.TOTAL_NUMBER_OF_VISITORS.getDescribe());
            reportOverview3.setCreateTime(data.getCreateTime());
            reportOverview3.setModifyTime(data.getModifyTime());
            reportOverview3.setCreateId(data.getCreateId());
            reportOverview3.setModifyId(data.getModifyId());
            reportOverview3.setIsDelete(false);
            dataInfo.add(reportOverview3);
            ReportOverview reportOverview4 = new ReportOverview();
            reportOverview4.setType(StatisticalStatementEnum.TOTAL_NUMBER_OF_USERS.getCode());
            reportOverview4.setDataValue(Convert.toStr(data.getSumUserCount()));
            reportOverview4.setStatisticalTime(data.getCreateTime());
            reportOverview4.setDescribe(StatisticalStatementEnum.TOTAL_NUMBER_OF_USERS.getDescribe());
            reportOverview4.setCreateTime(data.getCreateTime());
            reportOverview4.setModifyTime(data.getModifyTime());
            reportOverview4.setCreateId(data.getCreateId());
            reportOverview4.setModifyId(data.getModifyId());
            reportOverview4.setIsDelete(false);
            dataInfo.add(reportOverview4);
        });
        reportUserDayDetailsDao.list().forEach(data -> {
            ReportOverview reportOverview = new ReportOverview();
            reportOverview.setType(StatisticalStatementEnum.THE_NUMBER_OF_NEW_CITY_MASTERS.getCode());
            reportOverview.setDataValue(Convert.toStr(data.getNewAddCityLordCount()));
            reportOverview.setStatisticalTime(data.getCreateTime());
            reportOverview.setDescribe(StatisticalStatementEnum.THE_NUMBER_OF_NEW_CITY_MASTERS.getDescribe());
            reportOverview.setCreateTime(data.getCreateTime());
            reportOverview.setModifyTime(data.getModifyTime());
            reportOverview.setCreateId(data.getCreateId());
            reportOverview.setModifyId(data.getModifyId());
            reportOverview.setIsDelete(false);
            dataInfo.add(reportOverview);
            ReportOverview reportOverview1 = new ReportOverview();
            reportOverview1.setType(StatisticalStatementEnum.NEW_RESIDENTS.getCode());
            reportOverview1.setDataValue(Convert.toStr(data.getNewAddResidentCount()));
            reportOverview1.setStatisticalTime(data.getCreateTime());
            reportOverview1.setDescribe(StatisticalStatementEnum.NEW_RESIDENTS.getDescribe());
            reportOverview1.setCreateTime(data.getCreateTime());
            reportOverview1.setModifyTime(data.getModifyTime());
            reportOverview1.setCreateId(data.getCreateId());
            reportOverview1.setModifyId(data.getModifyId());
            reportOverview1.setIsDelete(false);
            dataInfo.add(reportOverview1);
            ReportOverview reportOverview2 = new ReportOverview();
            reportOverview2.setType(StatisticalStatementEnum.NUMBER_OF_NEW_VISITORS.getCode());
            reportOverview2.setDataValue(Convert.toStr(data.getNewAddRtouristsCount()));
            reportOverview2.setStatisticalTime(data.getCreateTime());
            reportOverview2.setDescribe(StatisticalStatementEnum.NUMBER_OF_NEW_VISITORS.getDescribe());
            reportOverview2.setCreateTime(data.getCreateTime());
            reportOverview2.setModifyTime(data.getModifyTime());
            reportOverview2.setCreateId(data.getCreateId());
            reportOverview2.setModifyId(data.getModifyId());
            reportOverview2.setIsDelete(false);
            dataInfo.add(reportOverview2);
        });
        List<List<ReportOverview>> split = CollUtil.split(dataInfo, 1000);
        split.forEach(list -> {
            reportOverviewService.saveBathEntity(list);
        });

    }

}
